package demo3;

import java.util.Scanner;

public class Sub extends Base{
    public int z;

    public int calculate(int x,int y, int z) {
        return x * y * z;
    }

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        Sub s = new Sub();
        System.out.print("请分别输入三个值：");
        s.x = scanner.nextInt();
        s.y = scanner.nextInt();
        s.z = scanner.nextInt();

        int ret = s.calculate(s.x, s.y, s.z);

        System.out.println(ret);

    }


}
